<form id="classeditfm" method="post" style="padding: 8px;">
<input type="hidden" name="id" value="<?php echo $mymenu->id;?>" />
	<table border="0" width="100%" cellspacing="1" cellpadding="5" class="formtable">
		<tr bgcolor="#FFFFFF">
			<td style="line-height:30px;"  width="20%">上级菜单：</td>
			<td width="80%">
			<SELECT name='up' style="width:153px; height:25px;" size='1' class="forminput inputstyle ">
				<OPTION value="0">根目录 </OPTION>
				<OPTION value="0" disabled="disabled"> ----------------- </OPTION>
				<?php foreach($dataset as $k=>$v):?>
				<OPTION  <?php if($v->id==$mymenu->up){echo "selected";}?> value="<?php echo $v->id;?>"><?php echo $v->title;?></OPTION>
				<?php endforeach;?>
			</SELECT>
			</td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td style="line-height:30px;"  width="20%">标题：</td>
			<td width="80%"><input name="title" type="text" style="width:400px;" class="forminput inputstyle validatebox-text textbox-prompt easyui-validatebox" placeholder="请输入标题.."  required="true"  value="<?php echo $mymenu->title;?>" ></td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td style="line-height:30px;"  width="20%">排序：</td>
			<td width="80%"><input name="sortorder" type="text" class="forminput inputstyle validatebox-text textbox-prompt easyui-validatebox" placeholder="请输入排序.." value="<?php echo $mymenu->sortorder;?>" ></td>
		</tr>

</table>
</form>

<script>
$(function(){
		$('#classupdatesubmit').click(function(data){
				$('#classeditfm').form('submit', {
					url:'/admin/news/classupdate',
					success: function(data){
						var data = eval('(' + data + ')');


						if(data.code=='200'){
								$.messager.show({
										title:'提示',
										msg:data.msg,
										timeout:3000,
										showType:'slide'
								});
								$('#classeditfm').form('clear');
								$("#classdlg").dialog('close');
								$("#class").treegrid('reload');
						}else{
								$.messager.alert('提示',data.msg,'warning');
						}
					}
				});
		})
});
</script>
